xend: PCIQuirk`__devIsUnconstrained refers to an undeclared variable if
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 11 Feb 2009 10:45:34 +0000 (10:45 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 11 Feb 2009 10:45:34 +0000 (10:45 +0000)
/etc/xen/xend-pci-permissive.sxp doesn't exist.

Signed-off-by: David Edmondson <dme@sun.com>
tools/python/xen/xend/server/pciquirk.py

index c8f8f6d392d8d6f5841da23b6586dcd079fa76e9..702c3b2a50fd4e8bd541dafeecb00317e1febaaa 100644 (file)
@@ -123,7 +123,8 @@ class PCIQuirk:
             log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE)
             self.pci_perm_dev_config = ['xend-pci-perm-devs']
 
-        devices = child_at(child(pci_perm_dev_config, 'unconstrained_dev_ids'),0)
+        devices = child_at(child(self.pci_perm_dev_config,
+                                 'unconstrained_dev_ids'),0)
         if self.__matchPCIdev( devices ):
             log.debug("Permissive mode enabled for PCI device [%s]" %
                       self.devid)